package org.example.ch01.p06;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNextLine()){
            String line=scanner.nextLine().trim();
            if (line.isEmpty()){
                continue;
            }
            String[]parts=line.split("\\s+");
            if (parts.length!=2){
                continue;
            }
            try {
                int num1=Integer.parseInt(parts[0]);
                int num2=Integer.parseInt(parts[0]);
                System.out.println(num1+num2);
            }catch (NumberFormatException e){

            }
        }
        scanner.close();
    }
}
